package edu.nf.postlikework.service;

import edu.nf.postlikework.model.dto.LikeDTO;

/**
 *
 * @author zjl
 * @date 2025/10/13
 */
public interface LikeService {

    /**
     * 检查当前用户是否对该贴点赞
     * @return
     */
    Boolean isLike(Integer postId,Integer userId);

    /**
     * 点赞或者取消点赞
     * @param postId 帖子ID
     * @param userId 用户ID
     * @return
     */
    LikeDTO like(Integer postId,Integer userId);
}
